package legoproject.Tests;

import lejos.nxt.Button;
import lejos.nxt.LCD;
import lejos.nxt.*;



public class TowerSensorTest {
    public static final LightSensor lightSensor = new LightSensor(SensorPort.S3);

    public static void main(String[] args){
        lightSensor.setFloodlight(false);
        while(!Button.ESCAPE.isPressed()){
            try{Thread.sleep(100);}catch(Exception e){}
            LCD.clear();
            LCD.drawInt(lightSensor.readValue(), 0, 0);
            LCD.refresh();
        }

    }
}
